//
//  KKPhotosManager.h
//  KKPhotosKitDemo
//
//  Created by liaozhenming on 2017/8/30.
//  Copyright © 2017年 liaozhenming. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <Photos/Photos.h>

typedef void(^KKPhotosResultBlockHandle)(NSArray *images);

static PHImageRequestOptions *KKPhotosManager_ImageRequestOptions;

@interface KKPhotosManager : NSObject

+ (instancetype)kk_defaultManager;

@property (nonatomic, assign) BOOL isOriginal;
@property (nonatomic, strong) KKPhotosResultBlockHandle resultBlock;    /**< 操作结果返回的数据*/

//  选取相片 ［可从相册和拍照中获取，此时一般为单张图片］
- (void)kk_takePicture;

//  选取相片 ［可从相册和拍照中获取，此时一般为单张图片，并且可编辑图片］
- (void)kk_takePictureWithEdit:(BOOL)edit;

//  拍照选取相片，并且可支持编辑图片
- (void)kk_takePictureFromCameraWithEdit:(BOOL)edit;

//  相册选取相片，并且可支持编辑图片
- (void)kk_takePictureFromAlbumWithEdit:(BOOL)edit;

//  图库选取多张相片，小图返回
- (void)kk_takePictureFromLibraryWithCountSize:(NSInteger)size;

//  图库选取多张相片。并且支持是否原图返回
 - (void)kk_takePictureFromLibraryWithCountSize:(NSInteger)size original:(BOOL)original;

@end
